<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:p="http://primefaces.org/ui"
       xmlns:cc="http://java.sun.com/jsf/composite">
	
	     <!--INFERFACE-->
	     <cc:interface>  
	        <cc:attribute name="widgetVar"  />
	        <cc:attribute name="confirmAction"  method-signature="void action()" />
	        <cc:attribute name="textHeader"  />
	        <cc:attribute name="textBody"  />
	        <cc:attribute name="update"  />
	     </cc:interface>  	      
    
	     <!-- CONFIRM DIALOG -->
	     
	     <p:confirmDialog id ="confirmDialog" 
	                     message="#{cc.attrs.textBody}"  
   						 header="#{cc.attrs.textHeader}" 
   						 severity="alert" 
   						 widgetVar="#{cc.attrs.widgetVar}" 
   						 draggable="true" 
   						 process="@this"
   						 appendToBody="true">  
   						 
	          				 
	     			 <p:outputPanel layout="block" style="text-align: center;">
		                  <p:commandLink id="idLinkConfirmar"  action="#{cc.attrs.confirmAction}" ajax="false" 
		                                 update="#{cc.attrs.update}" style="text-decoration: none;"> 	                         
		                      <p:commandButton  value="#{msg['dlg-btn-value-sim']}" /> 
		                  </p:commandLink>    
		             	                      
	                      <p:commandLink id="idLinkCancelar" onclick="#{cc.attrs.widgetVar}.hide()" style="text-decoration: none;">  
		                     <p:commandButton value="#{msg['dlg-btn-value-nao']}" />  
	                     
	                      </p:commandLink> 
	                                      
	                 </p:outputPanel>
	               
		  </p:confirmDialog> 
		 
		  
</html>